#include "StdAfx.h"
#include "TemporaryBoard.h"


CTemporaryBoard::CTemporaryBoard(int8_t goBoardLineCount): CGoBoard(goBoardLineCount)
{
}


void CTemporaryBoard::Init(void)
{
	InitOneBoard(BLACK_COLOR);
}

void CTemporaryBoard::Copy(const CTemporaryBoard &source)
{
	m_OneColorBoard[BLACK_COLOR] = source.m_OneColorBoard[BLACK_COLOR];
}


CTemporaryBoard::~CTemporaryBoard(void)
{
}


void CTemporaryBoard::CopyFromCGoBoard(const CGoBoard &src, TPlayerColor color)
{
	m_OneColorBoard[BLACK_COLOR] = src.m_OneColorBoard[color];
}


void CTemporaryBoard::CopyToCGoBoard(CGoBoard *dest, TPlayerColor color) const
{
	dest->m_OneColorBoard[color] = m_OneColorBoard[BLACK_COLOR];
}